package com.tianhui.consignortwofei.mvp.contract;

import com.fgs.common.CommonPresenter;
import com.fgs.common.CommonView;
import com.tianhui.consignortwofei.mvp.model.enty.CaptchaInfo;
import com.tianhui.consignortwofei.mvp.model.enty.LoginInfo;

import java.util.Map;

/**
 * @author fgs
 * @date 2020/3/27
 **/
public interface LoginContract {

    interface View extends CommonView {

        void result(LoginInfo info);

        void authCodeResult();
    }

    abstract class Presenter extends CommonPresenter<View> {

        public abstract void login(Map<String, String> map, boolean isDialog);

        public abstract void getAuthCode(CaptchaInfo info, boolean isDialog);

    }
}
